package com.easypan.entity.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author :liangyuhang1
 * @className :TencentEmailConfig
 * @date :2024/2/25/2:39
 */
@Component("tencentEmailConfig")
public class TencentEmailConfig {
    private static final Logger logger = LoggerFactory.getLogger(TencentEmailConfig.class);
    // 获取配置文件信息
    @Value("${tencent.email.smpt-host}")
    private String SMTP_HOST;

    @Value("${tencent.email.smpt-port}")
    private String SMTP_PORT;

    @Value("${tencent.email.fromAddress}")
    private String fromAddress;

    @Value("${tencent.email.password}")
    private String password;

    @Value("${tencent.email.fromName}")
    private String fromName;

    @Value("${tencent.email.title}")
    private String title;

    @Value("${tencent.email.emailContent}")
    public String emailContent;

    public String getSMTP_HOST() {
        return SMTP_HOST;
    }

    public void setSMTP_HOST(String SMTP_HOST) {
        this.SMTP_HOST = SMTP_HOST;
    }

    public String getSMTP_PORT() {
        return SMTP_PORT;
    }

    public void setSMTP_PORT(String SMTP_PORT) {
        this.SMTP_PORT = SMTP_PORT;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getEmailContent() {
        return emailContent;
    }

    public void setEmailContent(String emailContent) {
        this.emailContent = emailContent;
    }

}
